using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BotSharp.Plugin.Membase.Models;

public class Node
{
    public string Id { get; set; } = string.Empty;

    public List<string> Labels { get; set; } = new();

    public Dictionary<string, object> Properties { get; set; } = new();

    public DateTime Time { get; set; } = DateTime.UtcNow;

    public override string ToString()
    {
        var labelsString = Labels.Count > 0 ? string.Join(", ", Labels) : "No Labels";
        return $"Node ({labelsString}: {Id})";
    }
}
